package com.mobile.weather.client;

import com.mobile.weather.domain.City;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class CityListClientImpl implements CityListClient{
    @Override
    public List<City> cityList() {
        List<City> cityList=new ArrayList<>();

        City city=new City();
        city.setId(1);
        city.setCityId("110100");
        city.setCity("北京");
        city.setFather(null);
        cityList.add(city);

        return cityList;

    }
}
